import request from "../utils/request.js";
let baseUrl = import.meta.env.VITE_APP_BASE_API_CHAT;

// 获取用户信息
export const getUserInfo = (data) => {
  return request(baseUrl + "/chatmgt/chat_user/getUserList", "post", data);
};

// 更新用户信息
export const wxupdateUser = (data) => {
  return request(baseUrl + "/chatmgt/chat_user/wxupdateUser", "put", data);
};

//登录 传微信code
export const loginByWxCode = (data) => {
  return request(baseUrl + "/chatmgt/wx/login", "POST", data);
};
